otel: add test for document equivalence between agent filestream input and filebeat receiver#6681
Conversation
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
leehinman
left a comment
There was a problem hiding this comment.
I think if you add the default processors listed at https://github.com/elastic/beats/blob/76f40863c9918ee1a691a2bb29cbab98a5d83878/x-pack/filebeat/cmd/root.go#L48 and add the processors listed in the generate.go below you should get a much shorter list of fields to ignore.
0d77c63 to
4f8c12d
Compare
f751674 to
c0f6415
Compare
d022ccb to
9359f0c
Compare
|
I don't think the failing tests are related to this PR: Will update the branch to have them running again and hope the gateway failure was temporary |
5b5e4cd to
541729d
Compare
|
This pull request is now in conflicts. Could you fix it? 🙏 |
351981b to
7de70ca
Compare
|
…t and filebeat receiver (#6681) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac)
…t and filebeat receiver (#6681) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac)
…t and filebeat receiver (#6681) (#6868) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac) Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
…t and filebeat receiver (#6681) (#6867) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac) Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>





What does this PR do?
This PR adds a test that compares a log line ingested by a filestream agent input and a filebeat OTel receiver with equivalent configuration.
Checklist
./changelog/fragmentsusing the changelog toolRelated issues